<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>物业服务_${theForm.title}</title>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav">当前位置：<a href="${cpath}/users.do?action=main">我的主页</a> >> <a href="${cpath}/wuye.do?action=home&wuyeID=${theForm.wuyeID}">物业管理处</a> >> <a href="${cpath}/wyserve.do?action=list&qryWuyeID=${theForm.wuyeID}">物业服务列表</a></div>
	<%@ include file="/navf.jsp"%>
 </div> 
 <!--导航面包屑 end -->
  
 <!--主体 start -->
 <div class="body">
 
  <div class="hotBox1">  
    <div class="hotBox1-left">
      <img src="${cpath}/images/rich_text_format.png" width="75" height="75"  class="shequ icon user_icon_2"/>      
        <p class="f16"><b>${theForm.title}</b></p>
        <p class="lineColor1">发布者：
		<a href="${cpath}/users_home/userID_${serve.userID}.html">${myfn:getUserNick(theForm.userID)}</a>
		</p>
      </div>
    <div class="hotBox1-right">
      <p><a href="javascript:history.go(-1);"><img src="${cpath}/images/icon_32.gif" width="137" height="25" /></a></p>
      <!--<p><a href="#"><img src="${cpath}/images/icon_29.gif" width="215" height="48" /></a></p>-->    
    </div>
  </div> 
   
 <div class="left-Box6">
  <h3>${theForm.title}</h3>
  <div class="left-Box6-content">
   <div class="left-Box6-content-inner">
     <dl class="noticeDetail">
	 <form action="${cpath}/notadv.do" name="theForm"  method="post" enctype="multipart/form-data" >
	   <dt>
          <p class="p1">
            <b>主题：</b>
            <span class="s1 color_red">${theForm.title}</span>
            <span class="s2">发布者：${myfn:getUserNick(theForm.userID)}</span>
            <span class="s3">时间：${myfn:formatDate14(theForm.mtime,"-")}</span>            
          </p>
          ${theForm.content}
			<c:if test="${theForm.f_ID > 0}">
			<p ><a href="${cpath}/${myfn:getPic(theForm.f_ID)}" target="_blank">下载附件</a></p>
			</c:if>
       </dt>
		<c:forEach var="serve" items="${servelist}" varStatus="status" begin="0">   
        <dd>
         <p class="p1">${status.count}楼 ${myfn:getUserNick(serve.userID)} <span class="s3">时间：${myfn:formatDate14(serve.mtime,"-")}</span></p> 
         <p class="p2">${serve.content}</p> 
         <p class="p3"><a href="javascript:void(0)" target="_self" onClick="document.serveForm.content.focus();">回复</a></p>     
        </dd> 
		</c:forEach>     
        <dd>       
			<%@ include file="/jsplib/page.jsp" %>
			<!--隐藏域-->
			<input type="hidden" name='action' value='info'/>
        </dd>
		</form>
		
        <dd>   
		<form class="notice_from" action="${cpath}/wyserve.do" name="serveForm"  method="post" enctype="multipart/form-data" >
			<p class="notice_from_top">我要预约</p>
			<p><textarea class="input" name="content" cols="" rows=""></textarea></p>
			<p><a href="javascript:doConfirm();"><img src="${cpath}/images/icon_09.gif" width="83" height="22" /></a></p>
			<!--隐藏域-->
			<input type="hidden" name='userID'		value='${userID}'/>
			<input type="hidden" name='ntype'		value='${theForm.ntype}'/>
			<input type="hidden" name='seqID'		value='${theForm.seqID}'/>
			<input type="hidden" name='wuyeID'		value='${theForm.wuyeID}'/>
			<input type="hidden" name='title'		value='${theForm.title}'/>
			<input type="hidden" name='status'		value='${theForm.status}'/>
			<input type="hidden" name='f_ID'		value=''/>
			<input type="hidden" name='action'		value='add'/>
		 </form>   
        </dd>
     </dl>
   </div>
   <div class="clearFloat"></div>
  </div>
 </div>
  
 <div class="clearFloat"></div>
 </div> 
 <!--主体 end -->
 
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
<script>

    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{

		var userID = "${userID}";
		if(userID == '' ){
			alert('请登录网站');
			window.location.href ="${cpath}/index.jsp";
			return false;
		}

		var form = document.serveForm;

		var action = form['action'];
		var content = form['content'];

		if(content.length > 3000)
		{
			alert('内容长度不能大于3000,当前长度：' + content.length);
			return ;
		}

		if(content.length < 1 )
		{
			alert('内容不能为空');
			return ;
		}
		form.submit();
	}


    /**
     * 返回前一页
     */
    function doback()
    {
		javascript:history.go(-1);
    }

</script>